<script>
//图表提示信息配置
import BaseConfig from '../BaseConfig';

export default {
  name: 'TipConfig',
  mixins: [BaseConfig],
};
</script>

<template>
  <div>
    <Row>
      <Col span="8">
      <span>是否显示：</span>
      </Col>
      <Col span="16">
      <Switch
        v-model="chartOptions.extend.tooltip.show"
        @on-change="updateOptions">
        <span slot="open">是</span>
        <span slot="close">否</span>
      </Switch>
      </Col>
    </Row>
    <div
      v-if="chartOptions.extend.tooltip.show"
      class="switch-box">
      <Row>
        <Col span="8">
        <span>内容格式：</span>
        </Col>
        <Col span="16">
        <Input
          v-model="chartOptions.extend.tooltip.formatter"
          @on-change="updateOptions"></Input>
        </Col>
      </Row>
    </div>
  </div>
</template>

<style>
</style>
